#ifndef _ISSM_H
#define _ISSM_H

#define userKey1State                   GPIOA_IDR_IDR8
#define userKey2State                   GPIOD_IDR_IDR3

extern un8 issmFlag;
#define userKey1ShortEnterFlag          issmFlag.bits.bit0
#define userKey1LongEnterFlag           issmFlag.bits.bit1
#define userKey2ShortEnterFlag          issmFlag.bits.bit2
#define userKey2LongEnterFlag           issmFlag.bits.bit3

#define getUserKey1ShortEnterFlag()     userKey1ShortEnterFlag
#define getUserKey1LongEnterFlag()      userKey1LongEnterFlag
#define getUserKey1State()              userKey1State

#define getUserKey2ShortEnterFlag()     userKey2ShortEnterFlag
#define getUserKey2LongEnterFlag()      userKey2LongEnterFlag
#define getUserKey2State()              userKey2State

extern void issm(void);

#endif
